The Design Notes API > The Design Notes JavaScript API > MMNotes.getSiteRootForFile()

 

MMNotes.getSiteRootForFile()

Description

Determines the site root for the specified Design Notes file.

Arguments

fileURL

The argument is the path to a local file, expressed as a file:// URL.

Returns

A string containing the path of the Local Root folder for the site, expressed as a file:// URL, or an empty string if Dreamweaver (or UltraDev) is not installed or the Design Notes file is outside of any site defined with Dreamweaver or UltraDev.